package cnn.config;

/**
 * 通用事务模板, 业务项目中引用后可添加个性化匹配词
 */
public class TransactionAttributeTemplate {

    /**
     * 只读事务
     */
    public static final String[] REQUIRED_READONLY
            = {"find*","get*","select*","list*","search*","query*","count*","look*","is*"};

    /**
     * 回滚事务
     */
    public static final String[] REQUIRED = {
            "add*","new*","insert*","create*",
            "save*","edit*","modify*","update*","set*","exchange*","exec*",
            "delete*",
            "handle*","batch*","bind*","gain*","unload*","invalid*","liquidation*","cancle*","rollback*","build*","draw*",
            "accept*","complete*","send*","give*"
    };
}
